package com.jial08.rabbitmqretry.domain;

/**
 * @author jialiang
 */
public class QueueConstant {
    /**
     * 死信队列 交换机标识符
     */
    public static final String X_DEAD_LETTER_EXCHANGE = "x-dead-letter-exchange";
    /**
     * 死信队列交换机routing-key标识符
     */
    public static final String X_DEAD_LETTER_ROUTING_KEY = "x-dead-letter-routing-key";
    /**
     * 死信队列消息的超时时间枚举
     */
    public static final String X_MESSAGE_TTL = "x-message-ttl";
    /**
     * 消息消费失败的重试时间间隔
     */
    public static final int RETRY_SECOND = 30 * 1000;
    /**
     * 消息消费失败的重试次数
     */
    public static final int RETRY_TIMES = 3;
}
